package cn.dogeye.cn.dogeye;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName sys_role_auth_relation
 */
@Data
public class SysRoleAuthRelation implements Serializable {
    /**
     * 系统角色Id
     */
    private Integer sysRoleId;

    /**
     * 系统权限Id
     */
    private Integer sysAuthId;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysRoleAuthRelation other = (SysRoleAuthRelation) that;
        return (this.getSysRoleId() == null ? other.getSysRoleId() == null : this.getSysRoleId().equals(other.getSysRoleId()))
            && (this.getSysAuthId() == null ? other.getSysAuthId() == null : this.getSysAuthId().equals(other.getSysAuthId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSysRoleId() == null) ? 0 : getSysRoleId().hashCode());
        result = prime * result + ((getSysAuthId() == null) ? 0 : getSysAuthId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sysRoleId=").append(sysRoleId);
        sb.append(", sysAuthId=").append(sysAuthId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}